#include "app_main_can.h"
#include "bsp_can.h"
#include <stdbool.h>
#include "main.h"

static MAIN_MES_def mainMes;


static void TxMainMes01(void)
{
	mainMes.mes.life += 3;

    dv_CAN.fwrite_data(EM_CAN_2,0x0902BCF1, mainMes.data, 8);
}

static void TXMainMes(void)
{
	static uint16_t step = 0;
	step++;
	switch (step)
	{
		case 1:
			TxMainMes01();
			step = 0;
			break;
		default:
			break;
	}
}

void app_main_can_rx_run(void)
{

}
void app_main_can_tx_run(void)
{    
	TXMainMes();
}
